Separated code from html