finish binding between code and layout