Implemented vertical constraints
Fixed issues with vertical constraints