boolean allOptionsFilledUp() { if (c.getFrom() != null && c.getTo() != null && c.getD() != null && (c.isAc() || c.isNonAC())) { return true; } return false; // if any one of the options has not been selected, this function will return false and the // client will be stuck in the homepage }