changed input form to readonly directive