merge code and pad views